﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace RedDockNet_BackEnd.Model
{
    /// <summary>
    /// 站点用户
    /// </summary>
    public class User
    {
        /// <summary>
        /// 主键
        /// </summary>
        [BsonId]
        [BsonRepresentation(BsonType.ObjectId)]
        public string ObjectId { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 发布数
        /// </summary>
        public decimal TweetNum { get; set; }
        /// <summary>
        /// 点赞数
        /// </summary>
        public decimal ThumbNum { get; set; }
        /// <summary>
        /// 关注者数
        /// </summary>
        public decimal FollowerNum { get; set; }
        /// <summary>
        /// 被删除
        /// </summary>
        public bool Deleted { get; set; }
    }
}
